﻿using Future.Common.Models;
using Future.Model.DtoModel;
using Future.Model.SysModel;

namespace Future.IDAL
{
    /// <summary>
    /// 描述：角色数据访问接口
    /// 创建人： yangkai
    /// 创建时间：2022/12/5 16:39:35
    /// </summary>
    public interface IRoleDAL : IBaseDAL<RoleModel>
    {
        /// <summary>
        /// 分页获取角色信息列表
        /// </summary>
        /// <param name="roleQueryDto"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        PageModel<RoleModel> SelctPageList(RoleQueryDto roleQueryDto, PageParModel page);

        /// <summary>
        /// 通过用户Id获取角色列表
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        List<RoleModel> GetRolesByUserId(Guid userId);
    }
}
